//
//  ZCTopic.h
//  ZCBaiSi
//
//  Created by zc on 16/7/23.
//  Copyright © 2016年 zc. All rights reserved.
//

#import <Foundation/Foundation.h>
//typedef enum {
//    //图片
//    ZCTopicTypePicture = 10,
//    //段子
//    ZCTopicTypeWord = 29,
//    //音频
//    ZCTopicTypeVoice = 31,
//    //视频
//    ZCTopicTypeVideo = 41,
//}ZCTopicType;

typedef NS_ENUM(NSInteger,ZCTopicType){
    //图片
    ZCTopicTypePicture = 10,
    //段子
    ZCTopicTypeWord = 29,
    //音频
    ZCTopicTypeVoice = 31,
    //视频
    ZCTopicTypeVideo = 41,
};

@class ZCComment;
@interface ZCTopic : NSObject
//名字
@property (nonatomic, copy) NSString *name;
//用户头像
@property (nonatomic, copy) NSString *profile_image;
//帖子文字内容
@property (nonatomic, copy) NSString *text;
//帖子审核通过的时间
@property (nonatomic, copy) NSString *created_at;
//顶数量
@property (nonatomic, assign) NSInteger ding;
//踩数量
@property (nonatomic, assign) NSInteger cai;
//转发分享数量
@property (nonatomic, assign) NSInteger repost;
//评论数量
@property (nonatomic, assign) NSInteger comment;
//图片的真实高度宽度
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;

//最热评论，希望数组存放的是ZCComment模型
@property (nonatomic, strong) ZCComment *top_cmt;//泛型，告诉数组中放的是ZCComment类型
//帖子类型
@property (nonatomic, assign) ZCTopicType type;
@property (nonatomic, assign) BOOL is_gif;



//额外增加的属性，方便开发管理
//cell的高
@property (nonatomic, assign) CGFloat cellHeight;
//中间内容的frame
@property (nonatomic, assign) CGRect contentFrame;
//小图
@property (nonatomic, copy) NSString *image0;
//大图
@property (nonatomic, copy) NSString *image1;
//中等图 
@property (nonatomic, copy) NSString *image2;
//标记是否为超长图片
@property (nonatomic, assign) BOOL is_bigPic;




@end
